<% version = dep[:version] %>
<% dependency = dep[:dependency] %>
<% requirements = dep[:requirements] %>
<li>
  <%= link_to dependency[:project_name],
    project_path(platform: dependency[:platform], name: dependency[:project_name])
  %>
  -
  <%= link_to version[:number],
    version_path(platform: dependency[:platform], name: dependency[:project_name], number: version[:number]),
    class: 'tip',
    title: 'Resolved version'
  %>
  -
  <em class='text-muted'>
    <span class="tip" title="Specified version range"><%= requirements %></span>
    <%= '-' if requirements.present? %>
    <%= Array.wrap(dep[:normalized_licenses]).join(', ') %>
  </em>
  <% if dep[:dependencies] && dep[:dependencies].any? %>
    <ul>
      <% dep[:dependencies].each do |dependency| %>
        <li>
          <% if dependency.is_a?(Hash) %>
            <%= render 'dep', dep: dependency %>
          <% end %>
        </li>
      <% end %>
    </ul>
  <% end %>
</li>
